from django.db import models

# Create your models here.
class Book(models.Model):
    name = models.CharField(max_length=100, verbose_name="名字")
    age = models.IntegerField(verbose_name="年龄")

class Books(models.Model):
    name = models.CharField(max_length=100, verbose_name="名字")
    names = models.ForeignKey(Book, on_delete=models.CASCADE, related_name='book')